﻿using UnityEngine;
using System.Collections;

public class AthorAnimEvents : MonoBehaviour {

	public Transform axeOrigin;
	public Transform throwingAxe;

	public void throwAxe() {
		GameObject axe = ((Transform) Instantiate (throwingAxe, axeOrigin.position, Quaternion.identity)).gameObject;
		AxeSpinner spinner = (AxeSpinner) axe.GetComponent(typeof(AxeSpinner));
		spinner.moveSpeed *= transform.forward.x;
	}
}
